package com.qin.mall.component;

import com.qin.mall.service.UmsResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/** 资源与角色访问对应关系操作组件
 * @author Leisure
 * create 2022 2022/11/18 16:04
 **/
@Component
public class ResourceRoleRulesHolder {

    @Autowired
    private UmsResourceService resourceService;

    //依赖注入完成后执行的操作
    @PostConstruct
    public void initResourceRolesMap(){
        resourceService.initResourceRolesMap();
    }
}
